package com.kindergarten.service.impl;

import com.kindergarten.pojo.Page;
import com.kindergarten.mapper.PageMapper;
import com.kindergarten.service.IPageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author bruce
 * @since 2022-10-28
 */
@Service
public class PageServiceImpl extends ServiceImpl<PageMapper, Page> implements IPageService {

    @Resource
    PageMapper pageMapper;

    @Override
    public List<Page> findMyMenus(String roleId) {
        return pageMapper.findMyMenus(roleId);
    }
}
